home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / os2 / adaptor.zip / ADAPT.ZIP / adaptor / src / include / semexp.h < prev    next >
C/C++ Source or Header  |  1994-01-03  |  1KB  |  46 lines

  1. # ifndef yySemExp
  2. # define yySemExp
  3.  
  4. # if defined __STDC__ | defined __cplusplus
  5. # define ARGS(parameters)    parameters
  6. # else
  7. # define ARGS(parameters)    ()
  8. # endif
  9.  
  10. # ifndef bool
  11. # define bool char
  12. # endif
  13.  
  14. # include "Tree.h"
  15. # include "Definiti.h"
  16.  
  17. # line 26 "SemExp.puma"
  18.  
  19.  
  20. # define MAXLoops 20
  21.  
  22. /*********************************************************************
  23. *                                                                    *
  24. *  Nest[0]          DO     I1 = ...                                  *
  25. *  Nest[1]          DO     I2 = ...                                  *
  26. *  ...                                                               *
  27. *  Nest[Nesting-1]  FORALL Ik = ...                                  *
  28. *                                                                    *
  29. *    stmt      :         A(I1,I2,...,Ik)  = ....                     *
  30. *                                                                    *
  31. *********************************************************************/
  32.  
  33. extern int   Nesting;          /* actual nesting depth */
  34. extern tTree Nest[MAXLoops];   /* actual loops of loop nesting */
  35.  
  36.  
  37.  
  38. extern void SemExp ARGS((tTree t, int * ResultRank));
  39. extern void SemExpList ARGS((tTree t));
  40. extern void SemParamList ARGS((tTree t));
  41.  
  42. extern void BeginSemExp ();
  43. extern void CloseSemExp ();
  44.  
  45. # endif
  46.